

import Main from "../page/Main";
import Home from "../page/Home";
import List from '../page/List'
import Detail from "../page/Detail";

import Layout from "../layout"

export const menuList = [
    {
        path: '/layout/home',
        element: <Home />,
        name: '试题管理',
    },
    {
        path: '/layout/list',
        element: <List />,
        name: '用户管理'
    },
    {
        path: '/layout/main',
        element: <Main />,
        name: '考试管理'
    }
]

const routes = [
    {
        path: '/layout',
        element: <Layout />,
        children: menuList
    },
    {
        path: '/detail/:id',
        element: <Detail/>
    },
    {
        from: '/',
        to: '/layout/home'
    }
]

export default routes